home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 3006 / 3006.xpi / chrome / dwhelper.jar / content / smart-name-define.xul < prev    next >
Extensible Markup Language  |  2010-01-15  |  1KB  |  47 lines

  1. <?xml version="1.0"?> 
  2. <!-- *****************************************************************************
  3.  *            Copyright (c) 2006-2009 Michel Gutierrez. All Rights Reserved.
  4.  ****************************************************************************** -->
  5. <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
  6. <?xml-stylesheet href="chrome://dwhelper/content/bindings.css" type="text/css"?>
  7.  
  8. <!DOCTYPE dialog SYSTEM "chrome://dwhelper/locale/dwhelper.dtd" >
  9.  
  10. <dialog id="dwhelper-smart-name-define"
  11.         flex="1"
  12.         onload="onLoad()"
  13.         ondialogaccept="onOk()"
  14.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  15.         xmlns:html="http://www.w3.org/1999/xhtml"
  16.         buttons="cancel,accept">
  17.         
  18.     <html:style>
  19.     </html:style>
  20.  
  21.     <script><![CDATA[
  22. var Util=Components.classes["@downloadhelper.net/util-service;1"]
  23.     .getService(Components.interfaces.dhIUtilService);
  24.  
  25. function onLoad() {
  26.     var dialog=document.getElementById("dwhelper-smart-name-define");
  27.     var data=window.arguments[0];
  28.     var title=Util.getText("smartname.define.title."+data.mode);
  29.     document.title=title;
  30.     var snl=document.getElementById("location");
  31.     snl.setMode(data.mode);
  32.     snl.setNode(data.node);
  33. }
  34.  
  35. function onOk() {
  36.     var data=window.arguments[0];
  37.     data.ok=true;
  38.     data.value=document.getElementById("location").value;
  39. }
  40.  
  41. ]]>
  42.     </script>
  43.  
  44.     <SmartNameLocation id="location" flex="1"/>
  45.  
  46. </dialog>
  47.